<?php
class App_Module_Front_Component_Structure_Ctrl_Http_Web extends Mozg_Controller_Instance
{
	public function PrAction()
	{
    	$id = Mozg::Request('http')->get('itemId');
    	$elem = Mozg_Mapper::Get('Structure')->GetOne(array('id' => $id, 'active' => true));
    	if (!$elem) return;

    	Mozg::Response('http')->SetBody($elem->GetContentBody());
	}
}